﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace EFCoreLib01
{
    public interface IUnitOfWorkHandle<TDbContext> : IDisposable where TDbContext : DbContext
    {
        TDbContext GetActiveUnitOfWork();

        int SaveChange();

        Task<int> SaveChangeAsync();

        bool IsDisposed { get; }
    }
}
